package edu.just.pet.service.impl;

import edu.just.pet.dao.SysUserDao;
import edu.just.pet.entity.SysUser;
import edu.just.pet.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SysServiceimpl implements SysUserService {
    @Autowired
    private SysUserDao sysUserDao;

    @Override
    public SysUser check(SysUser sysUser) {
        return sysUserDao.getSysUserByUserName(sysUser);
    }

    @Override
    public SysUser getSysUserInfoById(SysUser sysUser) {
        return sysUserDao.getSysUserInfoById(sysUser);
    }
}
